package com.wgworkshop.pems.service;

import com.wgworkshop.pems.model.StudentModel;
import com.wgworkshop.pems.repository.StudentRepository;

import java.util.List;

/**
 * 学生服务接口。
 * Created by wlc on 2017/7/9.
 */
public interface StudentService {
    StudentModel save(StudentModel studentModel);

    void delete(Long id);

    StudentModel update(Long id, StudentModel studentModel);

    StudentModel update(StudentModel studentModel);

    StudentModel findOne(Long id);

    List<StudentModel> findByNameContaining(String name);

    boolean exists(Long id);

    void checkExists(Long id);

    StudentRepository getRepository();
}
